package com.situ.crm.controller;

import com.situ.crm.entity.Dict;
import com.situ.crm.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//字典Controller
@RestController
@RequestMapping("/dict")
public class DictController {

    @Autowired
    private IDictService dictService;

    @GetMapping(value = "/list")
    public List<Dict> selectList(String category){
        return dictService.selectList(category);
    }
}
